#include <stdio.h>

int main(int argc, char *argv[])
{

    int characters = 0, spaces = 0, numbers = 0, others = 0;

    char c;

    while ((c = getchar()) != '\n')

    {
        if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'))

        {
            characters++;
        }

        else if (c == ' ')

        {
            spaces++;
        }

        else if (c >= '0' && c <= '9')

        {
            numbers++;
        }

        else

        {
            others++;
        }
    }
    printf("characters=%d \n", characters);
    printf("spaces=%d \n", spaces);
    printf("numbers=%d \n", numbers);
    printf("others=%d \n", others);

    return 0;
}    